package cn.auction.entity;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

public class AuctionUser implements Serializable {
    private static final long serialVersionUID = -8556340660780631392L;
    //用户编号
    private Long userId;
    //用户名
    private String userName;
    //用户密码
    private String userPassword;
    //用户身份证号
    private String userCardNo;
    //用户电话
    private String userTel;
    //用户地址
    private String userAddress;
    //用户邮政编号
    private String userPostNumber;
    //用户是否是管理员，0是竞拍者，1是管理员，默认值是0
    private Boolean userIsAdmin;
    //用户找回密码的问题
    private String userQuestion;
    //用户找回密码答案
    private String userAnswer;
    /**
     * 添加一个竞拍记录表集合字段
     */
    private List<AuctionRecord> auctionRecords = new ArrayList();

    public AuctionUser() {
    }

    public AuctionUser(String userName, String userPassword) {
        this.userName = userName;
        this.userPassword = userPassword;
    }

    public AuctionUser(String userName, String userPassword, String userCardNo, String userTel, String userAddress, String userPostNumber, Boolean userIsAdmin, String userQuestion, String userAnswer, List<AuctionRecord> auctionRecords) {
        this.userName = userName;
        this.userPassword = userPassword;
        this.userCardNo = userCardNo;
        this.userTel = userTel;
        this.userAddress = userAddress;
        this.userPostNumber = userPostNumber;
        this.userIsAdmin = userIsAdmin;
        this.userQuestion = userQuestion;
        this.userAnswer = userAnswer;
        this.auctionRecords = auctionRecords;
    }

    public Long getUserId() {
        return this.userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return this.userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUserPassword() {
        return this.userPassword;
    }

    public void setUserPassword(String userPassword) {
        this.userPassword = userPassword;
    }

    public String getUserCardNo() {
        return this.userCardNo;
    }

    public void setUserCardNo(String userCardNo) {
        this.userCardNo = userCardNo;
    }

    public String getUserTel() {
        return this.userTel;
    }

    public void setUserTel(String userTel) {
        this.userTel = userTel;
    }

    public String getUserAddress() {
        return this.userAddress;
    }

    public void setUserAddress(String userAddress) {
        this.userAddress = userAddress;
    }

    public String getUserPostNumber() {
        return this.userPostNumber;
    }

    public void setUserPostNumber(String userPostNumber) {
        this.userPostNumber = userPostNumber;
    }

    public Boolean getUserIsAdmin() {
        return this.userIsAdmin;
    }

    public void setUserIsAdmin(Boolean userIsAdmin) {
        this.userIsAdmin = userIsAdmin;
    }

    public String getUserQuestion() {
        return this.userQuestion;
    }

    public void setUserQuestion(String userQuestion) {
        this.userQuestion = userQuestion;
    }

    public String getUserAnswer() {
        return this.userAnswer;
    }

    public void setUserAnswer(String userAnswer) {
        this.userAnswer = userAnswer;
    }

    public List<AuctionRecord> getAuctionRecords() {
        return this.auctionRecords;
    }

    public void setAuctionRecords(List<AuctionRecord> auctionRecords) {
        this.auctionRecords = auctionRecords;
    }
}
